package org.makcro.sms.services.chat.web.client.widgets.main;

import com.extjs.gxt.ui.client.widget.ContentPanel;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;

public class MainPanel extends ContentPanel {
	private TopPanel topPanel;
	
	public MainPanel() {
		setLayout( new FitLayout() );
		setTopComponent( getTopPanel() );
		setHeaderVisible( false );
	}
	
	public TopPanel getTopPanel() {
		if (this.topPanel == null) {
			this.topPanel = new TopPanel();
		}
		return topPanel;
	}
}
